require.config({
	paths:{
		angular: '../vendor/angularjs-1.4.1/angular',
		jquery: '../vendor/jquery-1.11.0.min',
		angularResource:'../vendor/angularjs-1.4.1/angular-resource.min',
		angularRoute: '../vendor/angularjs-1.4.1/angular-route.min',
		semantic:'../vendor/Semantic-UI-2.0.0/semantic.min'
	},
	shim:{
		angular:{
			deps: ['jquery'],
			exports: 'angular'
		},
		angularResource:{
			deps: ['angular']
		},
		angularRoute:{
			deps: ['angular']
		},
		semantic:{
			deps: ['jquery']
		}
	}   
});

window.name = "NG_DEFER_BOOTSTRAP!"; //延迟引导
require(['../vendor/domReady','angular', 'app', 'routes', 'controllers','semantic'], function(domReady,angular, app) {
    //angular.element(document.getElementsByTagName('html')[0]).ready(function() {
    //    angular.resumeBootstrap([app['resource']]);
    //});

	domReady(function () {
		angular.resumeBootstrap([app['name']]);
		//angular.bootstrap(document, ['js/app']);
		//angular.resumeBootstrap();
	});
});


